package com.design.homework.hw0317.observer.gperadvice.v2.subscribes;

import com.google.common.eventbus.Subscribe;
import com.risesun.designpattern.observer.gperadvice.v2.question.GPerEntertainmentQuestion;

/**
 * james 老师关于娱乐方面的通知!
 * @author qiqiang.ren
 * @since 2019/3/20
 */
public class GPerEntertainmentSubscribes{
    @Subscribe
    public void subscribe(GPerEntertainmentQuestion question){
        System.out.println("-*-*-*->咕泡娱乐群接收到消息!<-*-*-*-\n");
        System.out.println("来自:"+question.getUserName()+"的疑问:");
        System.out.println("问题描述:"+question.getContent() +"\n");
        question.getTeacher().answer(question);
    }
}
